Fix formatting of extended help.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 10 Feb 2003 21:37:40 +0000 (21:37 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 10 Feb 2003 21:37:40 +0000 (21:37 +0000)
Fix csv so prefer_shortnames appears in appropriate table.

gpsbabel/csv.c
gpsbabel/vecs.c

index cfc241d3fea5fa350fd2e11555f92efbb2624d65..e6c04b2ae837afda31ecde3311287bbd66c15dce 100644 (file)
@@ -31,7 +31,7 @@ static char *psn;
 
 static
 arglist_t csv_args[] = {
-       {"prefer_shortname", &psn, "Use shortnames even when we have longer names available"},
+       {"prefer_shortname", &psn, "Use shortnames even if longer names available"},
        {0, 0, 0}
 };
 
@@ -189,6 +189,7 @@ ff_vecs_t csv_vecs = {
        wr_deinit,
        data_read,
        data_write,
+       csv_args
 };
 
 ff_vecs_t xmap_vecs = {
@@ -198,5 +199,4 @@ ff_vecs_t xmap_vecs = {
        xmap_wr_deinit,
        data_read,
        data_write,
-       csv_args
 };
index 6e4a3f2d631cae48f1d2fc50a64698407d1ed672..48f20e9dcd0aa6d008003023f8a5a9e922f91261 100644 (file)
@@ -312,10 +312,10 @@ disp_vecs(void)
        arglist_t *ap;
 
        for (vec = vec_list; vec->vec; vec++) {
-               printf("        %-20.20s  %-50.50s\n",
+               printf("        %-20.20s  %-.50s\n",
                        vec->name, vec->desc);
                for (ap = vec->vec->args; ap && ap->argstring; ap++) {
-               printf("          %-18.18s    %-50.50s\n",
+               printf("          %-18.18s    %-.50s\n",
                        ap->argstring, ap->helpstring);
                }
        }